<!--
 * @Author: your name
 * @Date: 2021-05-07 14:58:08
 * @LastEditTime: 2021-05-07 15:07:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue01d:\HTML001\布局小技巧\练习\v-for和v-if一块用.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <div v-for="item of da">
        <div v-if="item.price>400">{{item.name}}</div>
      </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data() {
          return {
            dool: "ture",
            da: [{ price: 415 ,name:"zhangsan"}, { price: 95 ,name:"lisi"}, { price: 232,name:"mazi" }],
          };
        },
      });
    </script>
  </body>
</html>
